reverse tree